import { networkRequest, baseRequestConfig, sessionConfig } from './RequestConfig'

//获取session
export const getSession = (params) => {
    sessionConfig.url = '/SZCG/MAIN/000_000_000'
    sessionConfig.data = params
    return networkRequest(
        sessionConfig
    )
}

//获取微信公众号唯一标识openid
export const getWxOpenId = (params) => {
    baseRequestConfig.url = '/SZCG/WX/003_000_000';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//获取微信公众js配置
export const getWxJsConfig = (params) => {
    baseRequestConfig.url = '/SZCG/WX/003_000_001';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//逆地理编码
export const getAddress = (params) => {
    baseRequestConfig.url = '/SZCG/WX/003_000_002';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//案件提交
export const submitCase = (params) => {
    baseRequestConfig.url = '/SZCG/WX/003_000_003';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}


